package com.example.demo.service;

import com.example.demo.entity.*;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface MarketService {
    List<MarketTypeInfo> findMarketTypeInfo();

    List<MarketAreaInfo> findMarketAreaInfo();

    List<Market> findMarket();

    List<MarketPointRank> findMarketPointRank();

    List<MarketPopularityRank> findMarketPopularityRank();

    PageInfo<Market> selectMarketPage(Integer pageNum, Integer pageSize);


    Market findMarketByName(String name);

    void insertMarket(Market market);

    Market findMarketById(int id);

    void updateMarketEX(Market market1);

    void updateMarket(Market market);

    void deleteMarket(int id);
}
